package com.group.mapper;

import com.group.pojo.Friends;
import com.group.pojo.ProductOrder;
import com.group.pojo.UserAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
public interface UserAddressMapper extends BaseMapper<UserAddress> {

    /**
     * 查询地址
     * @param id
     * @return
     */
    List<UserAddress> findAddress(Integer id);
    /**
     * 修改内容信息
     * @param userAddress
     * @return
     */
    boolean updateFriendsAddress1(UserAddress userAddress);

    /**
     * 删除信息
     * @param addressid
     * @return
     */
    boolean deleteFriendsAddress1(String addressid[]);

    /**
     * 添加
     * @param userAddress
     * @return
     */
    boolean addFriendsAddress1(UserAddress userAddress);

    /**
     * 默认地市
     * @param addressid
     * @return
     */
    boolean defaultAddress01(Integer addressid);
    /**
     * 默认地市
     * @param addressid
     * @return
     */
    boolean defaultAddress11(Integer addressid);

    /**
     * 更新订单
     *
     * @param productOrder
     * @return
     */
    int updateOrder(ProductOrder productOrder);

    Integer findIdByAddress(String address);

    String findAddressById(Integer id);
}
